package com.debt.user.service.impl;

import com.debt.user.pojo.User;
import com.debt.user.service.UserService;
import com.debt.user.dao.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;


    /**
     * 根据ID查询
     * @param username
     * @return
     */
    @Override
    public User findById(String username){
        return  userMapper.selectById(username);
    }



}
